<?php
/**
 * @package                Joomla.Site
 * @subpackage	Templates.beez_20
 * @copyright        Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license                GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

jimport('joomla.filesystem.file');

// check modules
$showRightColumn	= ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom			= ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft			= ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
$showblock			= ($this->countModules('block1') or $this->countModules('block2') or $this->countModules('block3'));

if ($showRightColumn==0 and $showleft==0) {
	$showno = 0;
}

JHtml::_('behavior.framework', true);

// get params
$color				= $this->params->get('templatecolor');
$logo				= $this->params->get('logo');
$navposition		= $this->params->get('navposition');
$app				= JFactory::getApplication();
$doc				= JFactory::getDocument();
$templateparams		= $app->getTemplate(true)->params;
$templatepath       = $this->baseurl.'/templates/'.$this->template;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" type="text/css" href="<?php echo $templatepath; ?>/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $templatepath; ?>/css/styles.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $templatepath; ?>/css/reveal.css"/>

<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery.reveal.js"></script>
<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery.inputToggle.js"></script>
<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery.carouFredSel-6.0.1-packed.js"></script>
<script type="text/javascript" src="<?php echo $templatepath; ?>/js/jquery.validate.js"></script>
<script type="text/javascript">
$(document).ready( function(){	
	jQuery('#content-left').remove();
	jQuery('#content-right').removeAttr("id");
	jQuery('.joomla_add_this').remove();
	jQuery('.print_button').remove();
	jQuery('.title2').remove();
	var html = '<div class="print_button"><img src="<?php echo $templatepath; ?>/img/icon-print.png" width="16" height="15"><span><a href="#" onclick="window.print();return false;">Print</a></span></div>';
	jQuery('.top-app').append(html);
});
</script>

</head>
<body class="contentpane">
	<div id="all">
		<div id="main">
			<jdoc:include type="message" />
			<jdoc:include type="component" />
		</div>
	</div>
</body>
</html>
